//
//  UIWindow+AreaPickerView.m
//  DriveSchoolCoach
//
//  Created by TangBin on 2019/8/7.
//  Copyright © 2019 TangBin. All rights reserved.
//

#import "UIWindow+AreaPickerView.h"
#import <objc/runtime.h>

@implementation UIWindow (AreaPickerView)

- (TYZAreaPickerView *)areaPicker
{
    return objc_getAssociatedObject(self, _cmd);
}

- (void)setAreaPicker:(TYZAreaPickerView *)areaPicker
{
    objc_setAssociatedObject(self, @selector(areaPicker), areaPicker, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (UIView *)areaPickerMaskView
{
    return objc_getAssociatedObject(self, _cmd);
}

- (void)setAreaPickerMaskView:(UIView *)areaPickerMaskView
{
    objc_setAssociatedObject(self, @selector(areaPickerMaskView), areaPickerMaskView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);}


@end
